package com.fjec.im.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjec.common.protocol.JsonResult;
import com.fjec.im.entity.BizSystemMessage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.amqp.core.Message;

/**
 * <p>
 * 004.系统消息表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-10-20
 */
public interface IBizSystemMessageService extends IService<BizSystemMessage> {

    /**
     * 消费系统消息
     *
     * @param message
     * @throws Exception
     */
    void handleMessage(Message message) throws Exception;

    /**
     * 获取系统消息列表
     *
     * @param page
     * @return
     */
    JsonResult getSystemMessageList(Page page) throws Exception;

    /**
     * 获取消息信息
     *
     * @param msgId
     * @return
     */
    JsonResult readSystemMessage(Long msgId) throws Exception;
}
